package shit;
class ChangeAble {
    private int ID = 1;

    public ChangeAble(int ID) {
        this.ID = ID;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }
}
public class TestFinal {
    public static void main(String[] args) {
        final int a;

        final ChangeAble changeAble = new ChangeAble(6);
        // 错误, 无法修改changeAble的指向
        //changeAble = new ChangeAble(7);
        changeAble.setID(5);
        a = 9;
        System.out.println(changeAble.getID());

    }
}
